

pub const HEAD0: u8 = 0xE1;
pub const HEAD1: u8 = 0x1E;
pub const END: u8 = 0xEF;

pub fn sum_xor(buf: &[u8]) -> u8 {
    let mut s = 0;
    for v in buf {
        s = s ^ *v;
    }
    s
}


